﻿using RAP.Framework.Libary.DomTemplateBuilder.Interface;
using System.Collections;

namespace RAP.Framework.Libary.DataSource.Context
{
	/// <summary>
	/// 数据查询服务上下文对象
	/// </summary>
	public interface IDataServiceContext : ITemplateRenderContext
	{
		/// <summary>
		/// 查询结果对象
		/// </summary>
		IDictionary ResultData { get; }

		/// <summary>
		/// 从缓存获取到的结果集合
		/// </summary>
		IDictionary CachedResult { get; }

		/// <summary>
		/// 执行步骤进度
		/// </summary>
		StepProgress Progress { get; }

		/// <summary>
		/// 是否可被显示的调用Disposable接口
		/// </summary>
		bool Disposable { get; set; }
	}
}
